Skip to content

feat(cli): make OAuth debug logs opt-in via --verbose flag#35

Merged
emilioacc merged 1 commit intomainfrom
emilio/atxp-1428-make-oauth-debug-logs-opt-in-verbose
Jan 28, 2026
Merged

feat(cli): make OAuth debug logs opt-in via --verbose flag#35
emilioacc merged 1 commit intomainfrom
emilio/atxp-1428-make-oauth-debug-logs-opt-in-verbose

Conversation

@emilioacc
Copy link
Contributor

Summary

  • Suppress [atxp] OAuth debug logs by default
  • Enable verbose logs via --verbose/-v flag or DEBUG=atxp env var

Changes

  • Add verbose.ts utility with isVerboseMode() and getCliLogger()
  • Update atxpClient() in call-tool.ts to use LogLevel.WARN by default
  • Add Global Options section to help output documenting --verbose flag
  • Add unit tests for verbose mode detection

Test plan

  • Run npx atxp search "test" - should NOT show OAuth logs
  • Run npx atxp search "test" --verbose - should show OAuth logs
  • Run DEBUG=atxp npx atxp search "test" - should show OAuth logs
  • CI passes

Fixes: ATXP-1428

🤖 Generated with Claude Code

Suppress [atxp] OAuth debug logs by default. Enable them via:
- --verbose or -v flag
- DEBUG=atxp, DEBUG=1, or DEBUG=true environment variable

Changes:
- Add verbose.ts utility with isVerboseMode() and getCliLogger()
- Update atxpClient() to use LogLevel.WARN by default
- Add Global Options section to help output
- Add unit tests for verbose mode detection

Fixes: ATXP-1428

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@emilioacc emilioacc merged commit 0c42583 into main Jan 28, 2026
1 check passed
@emilioacc emilioacc deleted the emilio/atxp-1428-make-oauth-debug-logs-opt-in-verbose branch January 28, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant